package com.pachong.frameworkdemo.demo.httpdemo;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.pachong.android.baseuicomponent.activity.BaseActivity;
import com.pachong.frameworkdemo.R;

import butterknife.OnClick;


/**
 * Http demo 索引界面
 *
 * @Author: PV
 * @E-mail: pengveivei@sina.cn
 * @CreateDate: 2016-07-15
 * @Version: 1.0.0
 */
public class HttpDemoIndexActivity extends BaseActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }


    @Override
    public View createDataView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.activity_http_demo_index, null);
    }


    @OnClick(R.id.btnPostJson)
    void onPostJsonClicked() {
        Intent intent = new Intent(this, RegisterLoginDemoActivity.class);
        startActivity(intent);
    }


    @OnClick(R.id.btnGetSingleData)
    void onGetSingleDataClicked() {

    }

    @OnClick(R.id.btnGetListData)
    void onGetListDataClicked() {
        Intent intent = new Intent(this, RequestDemoListActivity.class);
        startActivity(intent);
    }

    @OnClick(R.id.btnGetListDataFromAssets)
    void onGetListDataFromAssetsClicked() {
        Intent intent = new Intent(this, RequestDemoAssetListActivity.class);
        startActivity(intent);
    }

    @OnClick(R.id.btnTitleItemDecoration)
    void onTitleItemDecorationClicked() {
        Intent intent = new Intent(this, ItemDecorationDemoListActivity.class);
        startActivity(intent);
    }

}
